package com.atguigu.daijia.common.result;

import lombok.Getter;

/**
 * 统一返回结果状态信息类
 *
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(202, "服务异常"),
    DATA_ERROR(203, "数据异常"),
    ILLEGAL_REQUEST(204, "非法请求"),
    REPEAT_SUBMIT(205, "重复提交"),
    FEIGN_FAIL(206, "远程调用失败"),
    UPDATE_ERROR(207, "数据更新失败"),

    ARGUMENT_VALID_ERROR(208, "参数校验异常"),
    SIGN_ERROR(209, "签名错误"),
    SIGN_OVERDUE(210, "签名已过期"),
    VALIDATECODE_ERROR(211 , "验证码错误"),
    WX_CODE_ERROR(212, "获取微信用户唯一标识失败"),

    LOGIN_AUTH(213, "未登陆"),
    PERMISSION(214, "没有权限"),
    ACCOUNT_ERROR(215, "账号不正确"),
    PASSWORD_ERROR(216, "密码不正确"),
    PHONE_CODE_ERROR(217, "手机验证码不正确"),
    LOGIN_MOBLE_ERROR( 218, "账号不正确"),
    ACCOUNT_STOP( 219, "账号已停用"),
    NODE_ERROR( 220, "该节点下有子节点，不可以删除"),

    ROB_NEW_ORDER_FAIL( 221, "抢单失败"),
    MAP_FAIL( 222, "地图服务调用失败"),
    PROFITSHARING_FAIL( 223, "分账调用失败"),
    NO_START_SERVICE( 224, "未开启代驾服务，不能更新位置信息"),
    DRIVER_START_LOCATION_DISTION_ERROR( 225, "距离代驾起始点1公里以内才能确认"),
    DRIVER_END_LOCATION_DISTION_ERROR( 226, "距离代驾终点2公里以内才能确认"),
    IMAGE_AUDITION_FAIL( 227, "图片审核不通过"),
    AUTH_ERROR( 228, "认证通过后才可以开启代驾服务"),
    FACE_ERROR( 229, "当日未进行人脸识别"),

    COUPON_EXPIRE( 230, "优惠券已过期"),
    COUPON_LESS( 231, "优惠券库存不足"),
    COUPON_USER_LIMIT( 232, "超出领取数量"),
    IDCARD_OCR_FAIL( 233, "腾讯云身份证识别失败"),
    DRIVER_LICENSE_OCR_FAIL(234, "腾讯云驾驶证识别失败"),
    BUILD_DROOLS_RULES_FAIL(235, "编译 Drools 规则失败"),
    DRIVER_NOT_FOUND(235, "附近没有适合接单的司机"),
    SEARCH_DRIVER_FAIL(236, "获取附近适合接单的司机失败"),
    XXL_JOB_FAIL(237, "XXL-JOB 任务操作失败"),
    REDIS_ERROR(238, "Redis 服务异常"),
    DRIVER_FACE_VERIFY_FAILURE(239, "司机人脸识别失败"),
    REDIS_HOST_NOT_SET(240, "未配置 Redis 的服务器地址"),
    UPLOAD_FILE_TO_MINIO_FAIL(241, "上传文件到 MinIO 失败"),
    WX_JSAPI_PREPAY_ERROR(242, "微信支付服务 JSAPI 下单异常"),
    WX_PAY_STATUS_FAIL(243, "查询微信支付结果失败");
;

    private Integer code;

    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
